﻿using System;
using System.Collections.Generic;



public class AppUserData : RespData
{


    public string id = null;
    public string name;
    public string account;
    public string password;
    public string type;
    public string content_id;
    public string unique_identifier;



    protected override int Deserialize()
    {

        if (string.IsNullOrEmpty(jsonText))
            return -1;

        data = MiniJSON.Json.Deserialize(jsonText) as Dictionary<string, object>;

        if (!GetSuccess())
            return -1;

        Dictionary<string, object> us = data["appUser"] as Dictionary<string, object>;

        id = us["id"].ToString();
        name = us["name"].ToString();
        account = us["account"].ToString();
        password = us["password"].ToString();
        type = us["type"].ToString();
        content_id = us["content_id"].ToString();
        unique_identifier = us["unique_identifier"].ToString();

        return 0;
    }

    public bool IsNull ()
    {
        return string.IsNullOrEmpty(id);
    }

    public void Clear()
    {
        id = null;
    }

}

